-- GENERATED SPELL FOR [Firemane Ash Tail] --


function spell0_4331(pUnit, Event) --@Fire Nova,Self--
pUnit:FullCastSpellOnTarget(11969,pUnit)
pUnit:RegisterEvent('Sorts_4331', 2000, 1)
end

function spell1_4331(pUnit, Event) --@Fire Shield,n/a--
pUnit:FullCastSpellOnTarget(18968,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4331', 0, 1)
end

function Sorts_4331(pUnit, Event)
local choix_sorts_4331 = math.random(0, 1)
if choix_sorts_4331 == 0 then
pUnit:RegisterEvent('spell0_4331', 1, 1)
end
if choix_sorts_4331 == 1 then
pUnit:RegisterEvent('spell1_4331', 1, 1)
end
end

function mob4331_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4331', math.random(1500, 3000), 1)
end

function mob4331_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4331_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4331_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4331, 1, 'mob4331_Action')
RegisterUnitEvent(4331, 2, 'mob4331_Leave')
RegisterUnitEvent(4331, 3, 'mob4331_Kill')
RegisterUnitEvent(4331, 4, 'mob4331_Die')
